package com.example.handsets8app.View;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.LinearLayout;


import com.example.handsets8app.Base.BaseActivity;
import com.example.handsets8app.R;

public class WelcomRzScienceActivity extends BaseActivity {

    private LinearLayout sealTicket;
    private LinearLayout checkTicket;
    private LinearLayout goToSetting;
    private Button btExit;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

    }



    @Override
    protected void initView() {
        sealTicket = (LinearLayout) findViewById(R.id.ll_wel_seal_rz);
        checkTicket = (LinearLayout) findViewById(R.id.ll_wel_check_rz);
        goToSetting = (LinearLayout) findViewById(R.id.ll_wel_setting_rz);
        btExit = (Button) findViewById(R.id.bt_wel_back_rz);

    }

    @Override
    protected void initData() {
        sealTicket.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                startActivity(new Intent(WelcomRzScienceActivity.this, OrderRzScienceActivity.class));
            }
        });

        checkTicket.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                startActivity(new Intent(WelcomRzScienceActivity.this, NewXinZhongXinActivity.class));
            }
        });

        goToSetting.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                startActivity(new Intent(WelcomRzScienceActivity.this, SettingActivity.class));
            }
        });

        btExit.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                // 清除 保存的信息
//                SPUtil.put(WelcomRzScienceActivity.this, BaseConfig.JJH_SP_NAME, BaseConfig.JJH_CHECK_GATENO, "");
                startActivity(new Intent(WelcomRzScienceActivity.this, LoginActivity.class));
                finish();
            }
        });

    }

    @Override
    public int initLayoutId() {
        return R.layout.activity_welcom_rz_science;
    }

}
